3.4.64 \(\int \frac {\log (f x^m) (a+b \log (c (d+e x)^n))}{x^3} \, dx\) [364]

Optimal. Leaf size=156 \[ -\frac {3 b e m n}{4 d x}-\frac {b e^2 m n \log (x)}{4 d^2}-\frac {b e n \log \left (f x^m\right )}{2 d x}+\frac {b e^2 n \log \left (1+\frac {d}{e x}\right ) \log \left (f x^m\right )}{2 d^2}+\frac {b e^2 m n \log (d+e x)}{4 d^2}-\frac {1}{4} \left (\frac {m}{x^2}+\frac {2 \log \left (f x^m\right )}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {b e^2 m n \text {Li}_2\left (-\frac {d}{e x}\right )}{2 d^2} \]

[Out]

-3/4*b*e*m*n/d/x-1/4*b*e^2*m*n*ln(x)/d^2-1/2*b*e*n*ln(f*x^m)/d/x+1/2*b*e^2*n*ln(1+d/e/x)*ln(f*x^m)/d^2+1/4*b*e
^2*m*n*ln(e*x+d)/d^2-1/4*(m/x^2+2*ln(f*x^m)/x^2)*(a+b*ln(c*(e*x+d)^n))-1/2*b*e^2*m*n*polylog(2,-d/e/x)/d^2

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2473, 2380, 2341, 2379, 2438, 46} \begin {gather*} -\frac {b e^2 m n \text {PolyLog}\left (2,-\frac {d}{e x}\right )}{2 d^2}-\frac {1}{4} \left (\frac {2 \log \left (f x^m\right )}{x^2}+\frac {m}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac {b e^2 n \log \left (\frac {d}{e x}+1\right ) \log \left (f x^m\right )}{2 d^2}-\frac {b e^2 m n \log (x)}{4 d^2}+\frac {b e^2 m n \log (d+e x)}{4 d^2}-\frac {b e n \log \left (f x^m\right )}{2 d x}-\frac {3 b e m n}{4 d x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(Log[f*x^m]*(a + b*Log[c*(d + e*x)^n]))/x^3,x]

[Out]

(-3*b*e*m*n)/(4*d*x) - (b*e^2*m*n*Log[x])/(4*d^2) - (b*e*n*Log[f*x^m])/(2*d*x) + (b*e^2*n*Log[1 + d/(e*x)]*Log
[f*x^m])/(2*d^2) + (b*e^2*m*n*Log[d + e*x])/(4*d^2) - ((m/x^2 + (2*Log[f*x^m])/x^2)*(a + b*Log[c*(d + e*x)^n])
)/4 - (b*e^2*m*n*PolyLog[2, -(d/(e*x))])/(2*d^2)

Rule 46

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x
)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && Lt
Q[m + n + 2, 0])

Rule 2341

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log[c*x^
n])/(d*(m + 1))), x] - Simp[b*n*((d*x)^(m + 1)/(d*(m + 1)^2)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2379

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_)^(r_.))), x_Symbol] :> Simp[(-Log[1 +
d/(e*x^r)])*((a + b*Log[c*x^n])^p/(d*r)), x] + Dist[b*n*(p/(d*r)), Int[Log[1 + d/(e*x^r)]*((a + b*Log[c*x^n])^
(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[p, 0]

Rule 2380

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.))/((d_) + (e_.)*(x_)^(r_.)), x_Symbol] :> Dist[1/d,
 Int[x^m*(a + b*Log[c*x^n])^p, x], x] - Dist[e/d, Int[(x^(m + r)*(a + b*Log[c*x^n])^p)/(d + e*x^r), x], x] /;
FreeQ[{a, b, c, d, e, m, n, r}, x] && IGtQ[p, 0] && IGtQ[r, 0] && ILtQ[m, -1]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2473

Int[Log[(f_.)*(x_)^(m_.)]*((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((g_.)*(x_))^(q_.), x_Symbol] :
> Simp[(-(g*(q + 1))^(-1))*(m*((g*x)^(q + 1)/(q + 1)) - (g*x)^(q + 1)*Log[f*x^m])*(a + b*Log[c*(d + e*x)^n]),
x] + (-Dist[b*e*(n/(g*(q + 1))), Int[(g*x)^(q + 1)*(Log[f*x^m]/(d + e*x)), x], x] + Dist[b*e*m*(n/(g*(q + 1)^2
)), Int[(g*x)^(q + 1)/(d + e*x), x], x]) /; FreeQ[{a, b, c, d, e, f, g, m, n, q}, x] && NeQ[q, -1]

Rubi steps

\begin {align*} \int \frac {\log \left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{x^3} \, dx &=-\frac {1}{4} \left (\frac {m}{x^2}+\frac {2 \log \left (f x^m\right )}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac {1}{2} (b e n) \int \frac {\log \left (f x^m\right )}{x^2 (d+e x)} \, dx+\frac {1}{4} (b e m n) \int \frac {1}{x^2 (d+e x)} \, dx\\ &=-\frac {1}{4} \left (\frac {m}{x^2}+\frac {2 \log \left (f x^m\right )}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac {1}{2} (b e n) \int \left (\frac {\log \left (f x^m\right )}{d x^2}-\frac {e \log \left (f x^m\right )}{d^2 x}+\frac {e^2 \log \left (f x^m\right )}{d^2 (d+e x)}\right ) \, dx+\frac {1}{4} (b e m n) \int \left (\frac {1}{d x^2}-\frac {e}{d^2 x}+\frac {e^2}{d^2 (d+e x)}\right ) \, dx\\ &=-\frac {b e m n}{4 d x}-\frac {b e^2 m n \log (x)}{4 d^2}+\frac {b e^2 m n \log (d+e x)}{4 d^2}-\frac {1}{4} \left (\frac {m}{x^2}+\frac {2 \log \left (f x^m\right )}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac {(b e n) \int \frac {\log \left (f x^m\right )}{x^2} \, dx}{2 d}-\frac {\left (b e^2 n\right ) \int \frac {\log \left (f x^m\right )}{x} \, dx}{2 d^2}+\frac {\left (b e^3 n\right ) \int \frac {\log \left (f x^m\right )}{d+e x} \, dx}{2 d^2}\\ &=-\frac {3 b e m n}{4 d x}-\frac {b e^2 m n \log (x)}{4 d^2}-\frac {b e n \log \left (f x^m\right )}{2 d x}-\frac {b e^2 n \log ^2\left (f x^m\right )}{4 d^2 m}+\frac {b e^2 m n \log (d+e x)}{4 d^2}-\frac {1}{4} \left (\frac {m}{x^2}+\frac {2 \log \left (f x^m\right )}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac {b e^2 n \log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 d^2}-\frac {\left (b e^2 m n\right ) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{2 d^2}\\ &=-\frac {3 b e m n}{4 d x}-\frac {b e^2 m n \log (x)}{4 d^2}-\frac {b e n \log \left (f x^m\right )}{2 d x}-\frac {b e^2 n \log ^2\left (f x^m\right )}{4 d^2 m}+\frac {b e^2 m n \log (d+e x)}{4 d^2}-\frac {1}{4} \left (\frac {m}{x^2}+\frac {2 \log \left (f x^m\right )}{x^2}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+\frac {b e^2 n \log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 d^2}+\frac {b e^2 m n \text {Li}_2\left (-\frac {e x}{d}\right )}{2 d^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.09, size = 204, normalized size = 1.31 \begin {gather*} -\frac {a d^2 m+3 b d e m n x-b e^2 m n x^2 \log ^2(x)+2 a d^2 \log \left (f x^m\right )+2 b d e n x \log \left (f x^m\right )-b e^2 m n x^2 \log (d+e x)-2 b e^2 n x^2 \log \left (f x^m\right ) \log (d+e x)+b d^2 m \log \left (c (d+e x)^n\right )+2 b d^2 \log \left (f x^m\right ) \log \left (c (d+e x)^n\right )+b e^2 n x^2 \log (x) \left (m+2 \log \left (f x^m\right )+2 m \log (d+e x)-2 m \log \left (1+\frac {e x}{d}\right )\right )-2 b e^2 m n x^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{4 d^2 x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(Log[f*x^m]*(a + b*Log[c*(d + e*x)^n]))/x^3,x]

[Out]

-1/4*(a*d^2*m + 3*b*d*e*m*n*x - b*e^2*m*n*x^2*Log[x]^2 + 2*a*d^2*Log[f*x^m] + 2*b*d*e*n*x*Log[f*x^m] - b*e^2*m
*n*x^2*Log[d + e*x] - 2*b*e^2*n*x^2*Log[f*x^m]*Log[d + e*x] + b*d^2*m*Log[c*(d + e*x)^n] + 2*b*d^2*Log[f*x^m]*
Log[c*(d + e*x)^n] + b*e^2*n*x^2*Log[x]*(m + 2*Log[f*x^m] + 2*m*Log[d + e*x] - 2*m*Log[1 + (e*x)/d]) - 2*b*e^2
*m*n*x^2*PolyLog[2, -((e*x)/d)])/(d^2*x^2)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.68, size = 2051, normalized size = 13.15

method result size
risch \(\text {Expression too large to display}\) \(2051\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(f*x^m)*(a+b*ln(c*(e*x+d)^n))/x^3,x,method=_RETURNVERBOSE)

[Out]

-1/8*b*Pi^2*csgn(I*c*(e*x+d)^n)^3/x^2*csgn(I*x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I*c*(e*x+d)^n)^2/x^2*csg
n(I*f)*csgn(I*f*x^m)^2+1/8*b*Pi^2*csgn(I*c)*csgn(I*c*(e*x+d)^n)^2/x^2*csgn(I*x^m)*csgn(I*f*x^m)^2+1/8*b*Pi^2*c
sgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)^2/x^2*csgn(I*f)*csgn(I*f*x^m)^2+1/8*b*Pi^2*csgn(I*(e*x+d)^n)*csgn(I*c*(e*
x+d)^n)^2/x^2*csgn(I*x^m)*csgn(I*f*x^m)^2-1/4*b*e^2*m*n*ln(x)/d^2+1/4*b*e^2*m*n*ln(e*x+d)/d^2-3/4*b*e*m*n/d/x

________________________________________________________________________________________

Maxima [A]
time = 0.33, size = 204, normalized size = 1.31 \begin {gather*} \frac {1}{4} \, {\left (\frac {2 \, {\left (\log \left (x\right ) \log \left (\frac {x e}{d} + 1\right ) + {\rm Li}_2\left (-\frac {x e}{d}\right )\right )} b n e^{2}}{d^{2}} + \frac {b n e^{2} \log \left (x e + d\right )}{d^{2}} - \frac {2 \, b n x^{2} e^{2} \log \left (x e + d\right ) \log \left (x\right ) - b n x^{2} e^{2} \log \left (x\right )^{2} + b n x^{2} e^{2} \log \left (x\right ) + 3 \, b d n x e + b d^{2} \log \left ({\left (x e + d\right )}^{n}\right ) + b d^{2} \log \left (c\right ) + a d^{2}}{d^{2} x^{2}}\right )} m + \frac {1}{2} \, {\left (b n {\left (\frac {e \log \left (x e + d\right )}{d^{2}} - \frac {e \log \left (x\right )}{d^{2}} - \frac {1}{d x}\right )} e - \frac {b \log \left ({\left (x e + d\right )}^{n} c\right )}{x^{2}} - \frac {a}{x^{2}}\right )} \log \left (f x^{m}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(f*x^m)*(a+b*log(c*(e*x+d)^n))/x^3,x, algorithm="maxima")

[Out]

1/4*(2*(log(x)*log(x*e/d + 1) + dilog(-x*e/d))*b*n*e^2/d^2 + b*n*e^2*log(x*e + d)/d^2 - (2*b*n*x^2*e^2*log(x*e
 + d)*log(x) - b*n*x^2*e^2*log(x)^2 + b*n*x^2*e^2*log(x) + 3*b*d*n*x*e + b*d^2*log((x*e + d)^n) + b*d^2*log(c)
 + a*d^2)/(d^2*x^2))*m + 1/2*(b*n*(e*log(x*e + d)/d^2 - e*log(x)/d^2 - 1/(d*x))*e - b*log((x*e + d)^n*c)/x^2 -
 a/x^2)*log(f*x^m)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(f*x^m)*(a+b*log(c*(e*x+d)^n))/x^3,x, algorithm="fricas")

[Out]

integral((b*log((x*e + d)^n*c)*log(f*x^m) + a*log(f*x^m))/x^3, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(f*x**m)*(a+b*ln(c*(e*x+d)**n))/x**3,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(f*x^m)*(a+b*log(c*(e*x+d)^n))/x^3,x, algorithm="giac")

[Out]

integrate((b*log((x*e + d)^n*c) + a)*log(f*x^m)/x^3, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (f\,x^m\right )\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}{x^3} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(f*x^m)*(a + b*log(c*(d + e*x)^n)))/x^3,x)

[Out]

int((log(f*x^m)*(a + b*log(c*(d + e*x)^n)))/x^3, x)

________________________________________________________________________________________